﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IOP.OpenType
{
    /// <summary>
    /// 导出的文字信息
    /// </summary>
    public class RasterizationFont
    {
        /// <summary>
        /// 字符
        /// </summary>
        public string Character { get; set; }
        /// <summary>
        /// 字形Id
        /// </summary>
        public uint GId { get; set; }
        /// <summary>
        /// 上限
        /// </summary>
        public float Ascender { get; set; }
        /// <summary>
        /// 下限
        /// </summary>
        public float Descender { get; set; }
        /// <summary>
        /// 行间距
        /// </summary>
        public float LingGap { get; set; }
        /// <summary>
        /// 行高
        /// </summary>
        public float LineHeight { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public float AdvanceWidth { get; set; }
        /// <summary>
        /// 左边距
        /// </summary>
        public float LeftSideBearings { get; set; }
        /// <summary>
        /// 右边距
        /// </summary>
        public float RightSideBearings { get; set; }
        /// <summary>
        /// 单位设计方格长度
        /// </summary>
        public float UnitsPerEm { get; set; }
        /// <summary>
        /// 光栅化方格长度
        /// </summary>
        public float RasterizationPerEm { get; set; }
        /// <summary>
        /// 包围盒
        /// </summary>
        public Bounding Bounding { get; set; }
        /// <summary>
        /// UV包围盒
        /// </summary>
        public Bounding UVBounding { get; set; }
        /// <summary>
        /// 光栅化数据
        /// </summary>
        public byte[,] RasterizationData { get; set; }
    }
}
